//
//  DSSendCode.h
//  
//  发送验证码

//  Created by admin on 17/3/24.
//  Copyright © 2017年 NiLaisong. All rights reserved.
//

typedef void(^CodeTimeBlock)(BOOL start,NSString * time );

#import <Foundation/Foundation.h>

@interface DSSendCode : NSObject
@property(nonatomic,copy)NSString * phone;

@property(nonatomic,assign)BOOL start;

@property(nonatomic,copy)CodeTimeBlock block;

+ (void)GetsendCodeWithphone:(CodeTimeBlock)block;//获取60秒倒计时

+ (void)GetHoursCountDownWith:(CodeTimeBlock)block;//获取90分钟倒计时


+ (DSSendCode*)shareTime;//单例记录

- (void)getsendCodeWithphone:(NSString*)phone :(CodeTimeBlock)block;

- (void)sendCodeTime;

- (void)clears;

@end
